package com.day07;

public class TestConstant {
    public static void main(String[] args) {
        final int APPLE_PRICE_PER_KM;//声明一个常量
        int weightOfApple;//声明变量
        int money;
        APPLE_PRICE_PER_KM=3;
        //APPLE_PRICE_PER_KM=3;//常量的值不能改变除非把final关键字去掉
        weightOfApple=6;
        weightOfApple=8;
        money=APPLE_PRICE_PER_KM*weightOfApple;
        System.out.println("买苹果花了"+money+"元");
    }
}
